package martian.m4gic.core
{
	import flash.display.StageAlign;
	import flash.display.StageQuality;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	import martian.m4gic.display.Smartie;
	
	public class Project extends Smartie
	{
		public function Project() { addEventListener(Event.ADDED_TO_STAGE, setup); }
		private function setup(e:Event):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, setup);
			
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.quality = StageQuality.BEST;
			stage.frameRate = 60;
			
			initialize();
		}
		
		protected function initialize():void { throw new Error('You need to overwrite initialize method'); }
	}
}